﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity"
                    xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
                    xmlns:sys="clr-namespace:System;assembly=mscorlib"
                    xmlns:resources="clr-namespace:WirelessAccessPoint.Resources"
                    xmlns:model="clr-namespace:WirelessAccessPoint">

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="/Style/HeaderStyle.xaml" />
    </ResourceDictionary.MergedDictionaries>

    <DataTemplate x:Key="ConfigHeaderTemplate" DataType="{x:Type model:WirelessAccessPointViewModel}">
        <DockPanel LastChildFill="False">
            <!--<Label DockPanel.Dock="Left" Content="&#xF00B;" Style="{StaticResource HeaderImageLabelStyle}" />-->
            <Label DockPanel.Dock="Left" Content="{x:Static resources:LabelResource.ConfigLabel}" Style="{StaticResource HeaderTitleLabelStyle}" />
            <Button DockPanel.Dock="Right" Command="{Binding StartOrStopCommand}">
                <StackPanel Orientation="Horizontal">
                    <Label Content="&#xF012;" Style="{StaticResource ButtonImageLabelStyle}" />
                    <Label x:Name="Label" Content="{x:Static resources:LabelResource.StartLabel}" Style="{StaticResource ButtonTitleLabelStyle}" />
                </StackPanel>                
            </Button>
        </DockPanel>
        <DataTemplate.Triggers>
            <DataTrigger Binding="{Binding IsActiveHostedNetworkAndNetSharing}" Value="True">
                <Setter Property="Content" TargetName="Label" Value="{x:Static resources:LabelResource.StopLabel}" />
            </DataTrigger>
        </DataTemplate.Triggers>
    </DataTemplate>

</ResourceDictionary>
